#ifndef LOCK_H
#define LOCK_H

#include <pthread.h>

class Condition;

class Lock {
 public:
  Lock();
  void acquire();
  bool tryAcquire();
  void release();
  
 private:
  pthread_mutex_t mMutex;
  
  friend class Condition;
};

#endif
